package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.TypesOfInsuranceDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity TypesOfInsurance and its DTO TypesOfInsuranceDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface TypesOfInsuranceMapper extends EntityMapper <TypesOfInsuranceDTO, TypesOfInsurance> {
    
    
    default TypesOfInsurance fromId(Long id) {
        if (id == null) {
            return null;
        }
        TypesOfInsurance typesOfInsurance = new TypesOfInsurance();
        typesOfInsurance.setId(id);
        return typesOfInsurance;
    }
}
